package com.tianfang.mytranmqproducer.service;

import com.tianfang.mytranmqproducer.mapper.TxMsgMapper;
import com.tianfang.mytranmqproducer.model.TxMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TxMsgService {
    @Autowired
    private TxMsgMapper txMsgMapper;

    public TxMsg getAllMsg() {
        TxMsg txMsg = txMsgMapper.selectAll();
        return txMsg;
    }

    public TxMsg getFirstFieldMsg() {
        TxMsg txMsg = txMsgMapper.selectFirstField();
        return txMsg;
    }
}
